﻿@{
    var data = (List<NameValue>)ViewBag.PageHead;
    if (data != null && data.Count > 0)
    {
        <div class="row-fluid">
            <div class="span12">
                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
                    @data.ElementAt(0).Name<small>@data.ElementAt(0).Value</small>
                </h3>
                @if (data.Count > 1)
                {
                    <ul class="breadcrumb">
                        @for (int i = 1; i < data.Count; i++)
                        {

                            <li>
                                @if (i == 1)
                                {
                                    <i class="icon-home"></i>
                                }
                                <a href="@data.ElementAt(i).Value">@data.ElementAt(i).Name</a>
                                @if (i < data.Count - 1)
                                {
                                    <i class="icon-angle-right"></i>
                                }
                            </li>
                        }
                    </ul>
                }
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
    }
}